#pragma once

#include<iostream>
#include<map>
#include<sys/ipc.h>
#include<sys/shm.h>
#include<cstring>
#include<sys/types.h>
#include<unistd.h>
#include<time.h>

#define IPC_PATH "/home/byld/test_linux"

key_t creat_key()
{
    return ftok(IPC_PATH,0X12);
}

std::ostream& log()
{
   std::cout<<"时间戳"<<time(nullptr)<<"|";
   return std::cout;
}
